package com.chasmcity.munrobagging;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * TODO: Missing class description for HomeActivity!
 * <p>
 * &copy; Copyright 2011 Kizoom Ltd.
 * <p>
 * $Id: wildebeest_standard.epf,v 1.9 2007/01/17 14:59:59 danf Exp $
 */
public class HomeActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.home);
		
		((Button) findViewById(R.id.listMunros)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View view) {
				startActivity(new Intent(HomeActivity.this, MunroListActivity.class));
			}
		});

		((Button) findViewById(R.id.showMap)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View view) {
	    		MunroMapActivity.launch(HomeActivity.this, null);
			}
		});
	}
}
